<template>


  <button @click="show = !show">显示和隐藏</button>

  <UserList v-if="show"></UserList>

</template>

<script setup lang="ts" name='App'>
import { ref, reactive } from "vue";
import UserList from "./components/UserList.vue";

let show = ref(true);

</script>

<style scoped></style>